package com.jgy.mapper;

import com.jgy.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jgy.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author light
* @description 针对表【role】的数据库操作Mapper
* @createDate 2023-04-01 15:37:56
* @Entity com.jgy.entity.Role
*/
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select * from user_role where user_id = #{userId}")
    List<UserRole> getUserRoleByUserId(Integer userId);
}




